import {Injectable} from '@angular/core';
import {HttpBaseService} from './http-base.service';

@Injectable()
export class HttpService {

    constructor(private httpBaseService: HttpBaseService) {
    }

    /**
     *method  请求方式； url 请求接口； params 请求参数
     */
    public http(method, url, params?) {
        return this.httpBaseService.request({
            method: method,
            url: url,
            data: params
        });
    }
}
